package com.xd.clap.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Product {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ExcelProperty("商品名称")
    private String name;
    @ExcelProperty("分类代码")
    private String cid;
    @ExcelProperty("商品图片")
    private String img;
    @ExcelProperty("商品价格")
    private Integer price;
    @ExcelProperty("是否上架")
    private Boolean isShow;
    @ExcelProperty("商品库存")
    private Integer stock;
}
